<html>
<head>

</head>
<body>

<table border="1px">
    <tr>
        <th>id</th>
        <th>phone</th>
        <th>realname</th>
    </tr>
    <?php foreach ($lists as $row): ?>
    <tr>
        <th><?php echo $row->id;?></th>
        <th><?php echo $row->phone;?></th>
        <th><?php echo $row->realname;?></th>
    </tr>
    <?php endforeach; ?>
</table>
</body>
</html>